const NODE_ENV = process.env.NODE_ENV;

const BASE_URL = system_configs[NODE_ENV]['base_url'];
const BASE_FILE_URL = system_configs[NODE_ENV]['base_file_url'];
const URL_SUFFIX = '';

export const BASE_PATH = system_configs[NODE_ENV]['base_path'];
export const STATIC_BASE_URL = system_configs[NODE_ENV]['base_static_url'];
export const WS_HOST = system_configs[NODE_ENV]['ws_host'];

export const fileUploadUri = BASE_FILE_URL + '/upload/form' + URL_SUFFIX;
export const fileUploadByBase64Uri = BASE_FILE_URL + '/upload/base64' + URL_SUFFIX;
export const ueFileUploadUri = BASE_FILE_URL + '/upload/ue' + URL_SUFFIX;

export const siteConfigUri = `${BASE_URL}/index/site_config${URL_SUFFIX}`;
export const userLoginUri = `${BASE_URL}/user/login${URL_SUFFIX}`;
export const userLogoutUri = `${BASE_URL}/user/logout${URL_SUFFIX}`;
export const userLoginByTokenUri = `${BASE_URL}/user/login_by_token${URL_SUFFIX}`;
export const registerByWxUserInfoUri = `${BASE_URL}/user/register_by_wx_user_info${URL_SUFFIX}`;
export const userLoginByOpenidUri = `${BASE_URL}/user/login_by_openid${URL_SUFFIX}`;
export const userLoginByCodeUri = `${BASE_URL}/user/login_by_code${URL_SUFFIX}`;

export const smsCaptchaSendUri = `${BASE_URL}/sms_captcha/send${URL_SUFFIX}`;
export const captchaEntryUri = `${BASE_URL}/captcha/entry${URL_SUFFIX}`;

export const regionAllUri = `${BASE_URL}/region/all${URL_SUFFIX}`;
export const regionTreeUri = `${BASE_URL}/region/tree${URL_SUFFIX}`;
export const regionChildrenUri = `${BASE_URL}/region/children${URL_SUFFIX}`;

export const wechatJsApiConfigUri = `${BASE_URL}/wechat/jsapi_config${URL_SUFFIX}`;
export const wxUserInfoByCodeUri = `${BASE_URL}/wechat/wx_user_info_by_code${URL_SUFFIX}`;

export const memberListsUri = `${BASE_URL}/member/lists${URL_SUFFIX}`;
export const memberProfileUri = `${BASE_URL}/member/profile${URL_SUFFIX}`;
export const memberProfileByUserIdUri = `${BASE_URL}/member/profile_by_user_id${URL_SUFFIX}`;
export const memberVipLevelsUri = `${BASE_URL}/member/vip_levels${URL_SUFFIX}`;
export const memberMyProfileUri = `${BASE_URL}/my_member_profile/my${URL_SUFFIX}`;
export const memberSaveMemberPhotoUri = `${BASE_URL}/my_member_profile/save_member_photo${URL_SUFFIX}`;
export const memberSaveBaseInfoUri = `${BASE_URL}/my_member_profile/save_base_info${URL_SUFFIX}`;
export const memberSaveExpectInfoUri = `${BASE_URL}/my_member_profile/save_expect_info${URL_SUFFIX}`;
export const memberConstantsUri = `${BASE_URL}/member/constants${URL_SUFFIX}`;
export const memberModifyUserAvatarUri = `${BASE_URL}/my_member_profile/modify_user_avatar${URL_SUFFIX}`;
export const memberModifyUserNickUri = `${BASE_URL}/my_member_profile/modify_user_nick${URL_SUFFIX}`;
export const memberLikeUri = `${BASE_URL}/member/like${URL_SUFFIX}`;
export const memberViewWxIdUri = `${BASE_URL}/member/view_wxid${URL_SUFFIX}`;
export const memberUnlockPhoneUri = `${BASE_URL}/member/unlock_phone${URL_SUFFIX}`;
export const memberDeleteUri = `${BASE_URL}/my_member_profile/delete${URL_SUFFIX}`;
export const memberCheckInUri = `${BASE_URL}/member/check_in${URL_SUFFIX}`;
export const memberMyCheckInUri = `${BASE_URL}/member/my_check_in${URL_SUFFIX}`;
export const memberSharePosterUri = `${BASE_URL}/member/share_poster${URL_SUFFIX}`;
export const memberMySharePosterUri = `${BASE_URL}/member/my_share_poster${URL_SUFFIX}`;
export const memberMyQrCodeImgUri = `${BASE_URL}/member/my_qrcode_img${URL_SUFFIX}`;
export const memberRecommendUri = `${BASE_URL}/member/recommend${URL_SUFFIX}`;

export const memberReportSaveUri = `${BASE_URL}/member_report/save${URL_SUFFIX}`;

export const vipLevelOrderCreateUri = `${BASE_URL}/vip_level_order/create${URL_SUFFIX}`;

export const serviceChargeOrderCreateUri = `${BASE_URL}/service_charge_order/create${URL_SUFFIX}`;

export const wxPayQueryUri = `${BASE_URL}/wx_pay/query${URL_SUFFIX}`;
export const wxPayCreateVipLevelPayTradeUri = `${BASE_URL}/wx_pay/create_vip_level_pay_trade${URL_SUFFIX}`;
export const wxPayServiceChargeOrderPayTradeUri = `${BASE_URL}/wx_pay/service_charge_order${URL_SUFFIX}`;
export const wxPayCreateCourseOrderPayTradeUri = `${BASE_URL}/wx_pay/create_course_order_pay_trade${URL_SUFFIX}`;
export const wxPayCreateServicePackageOrderPayTradeUri = `${BASE_URL}/wx_pay/create_service_package_order_pay_trade${URL_SUFFIX}`;

export const visitorListsUri = `${BASE_URL}/visitor/lists${URL_SUFFIX}`;

export const followListsUri = `${BASE_URL}/follow/lists${URL_SUFFIX}`;

export const userWithdrawAccountMyUri = `${BASE_URL}/user_withdraw_account/my${URL_SUFFIX}`;
export const userWithdrawAccountSaveUri = `${BASE_URL}/user_withdraw_account/save${URL_SUFFIX}`;

export const userWithdrawApplyUri = `${BASE_URL}/user_withdraw/apply${URL_SUFFIX}`;
export const userWithdrawListsUri = `${BASE_URL}/user_withdraw/lists${URL_SUFFIX}`;

export const memberImagesAllUri = `${BASE_URL}/member_images/all${URL_SUFFIX}`;
export const memberImagesMyAllUri = `${BASE_URL}/member_images/my_all${URL_SUFFIX}`;
export const memberImagesUploadUri = `${BASE_URL}/member_images/upload${URL_SUFFIX}`;
export const memberImagesDeleteUri = `${BASE_URL}/member_images/delete${URL_SUFFIX}`;

export const memberAuthFaceDetectUrlUri = `${BASE_URL}/member_auth/face_detect_url${URL_SUFFIX}`;
export const memberAuthFaceDetectResultUri = `${BASE_URL}/member_auth/face_detect_result${URL_SUFFIX}`;
export const memberAuthSaveUri = `${BASE_URL}/member_auth/save${URL_SUFFIX}`;
export const memberAuthMyUri = `${BASE_URL}/member_auth/my${URL_SUFFIX}`;

export const memberRechargeRecordInfoUri = `${BASE_URL}/member_recharge_record/info${URL_SUFFIX}`;
export const memberRechargeRecordCreateUseGoldCoinUri = `${BASE_URL}/member_recharge_record/create_use_gold_coin${URL_SUFFIX}`;

export const activityListsUri = `${BASE_URL}/activity/lists${URL_SUFFIX}`;
export const activityInfoUri = `${BASE_URL}/activity/info${URL_SUFFIX}`;
export const activityApplyUri = `${BASE_URL}/activity/apply${URL_SUFFIX}`;
export const activityMyUri = `${BASE_URL}/activity/my${URL_SUFFIX}`;
export const activitySharePosterUri = `${BASE_URL}/activity/share_poster${URL_SUFFIX}`;
export const activitySignInUri = `${BASE_URL}/activity/sign_in${URL_SUFFIX}`;

export const courseListsUri = `${BASE_URL}/course/lists${URL_SUFFIX}`;
export const courseInfoUri = `${BASE_URL}/course/info${URL_SUFFIX}`;
export const courseSharePosterUri = `${BASE_URL}/course/share_poster${URL_SUFFIX}`;
export const courseSignInUri = `${BASE_URL}/course/sign_in${URL_SUFFIX}`;

export const courseOrderCreateUri = `${BASE_URL}/course_order/create${URL_SUFFIX}`;
export const courseOrderListsUri = `${BASE_URL}/course_order/lists${URL_SUFFIX}`;
export const courseOrderInfoUri = `${BASE_URL}/course_order/info${URL_SUFFIX}`;
export const courseOrderCancelUri = `${BASE_URL}/course_order/cancel${URL_SUFFIX}`;
export const courseOrderPayByGoldCoinUri = `${BASE_URL}/course_order/pay_by_gold_coin${URL_SUFFIX}`;

export const chatMessageSendUri = `${BASE_URL}/user_chat_message/send${URL_SUFFIX}`;
export const chatMessageSendAuthNoticeUri = `${BASE_URL}/user_chat_message/send_auth_notice${URL_SUFFIX}`;
export const chatMessageSessionsUri = `${BASE_URL}/user_chat_message/sessions${URL_SUFFIX}`;
export const chatMessageSessionUri = `${BASE_URL}/user_chat_message/session${URL_SUFFIX}`;
export const chatMessageReadUri = `${BASE_URL}/user_chat_message/read${URL_SUFFIX}`;
export const chatMessageNewAmountUri = `${BASE_URL}/user_chat_message/new_amount${URL_SUFFIX}`;

export const myMatchmakerRecommendUri = `${BASE_URL}/my_matchmaker/recommend${URL_SUFFIX}`;
export const myMatchmakerSalaryListUri = `${BASE_URL}/my_matchmaker/salary_list${URL_SUFFIX}`;
export const myMatchmakerStatisticUri = `${BASE_URL}/my_matchmaker/statistic${URL_SUFFIX}`;
export const matchmakerApplyUri = `${BASE_URL}/matchmaker/apply${URL_SUFFIX}`;

export const servicePackageAllUri = `${BASE_URL}/service_package/all${URL_SUFFIX}`;
export const servicePackageOrderCreateUri = `${BASE_URL}/service_package_order/create${URL_SUFFIX}`;
export const servicePackageOrderListsUri = `${BASE_URL}/service_package_order/lists${URL_SUFFIX}`;
export const servicePackageOrderDetailUri = `${BASE_URL}/service_package_order/detail${URL_SUFFIX}`;
export const servicePackageOrderCancelUri = `${BASE_URL}/service_package_order/cancel${URL_SUFFIX}`;

export const myWalletRecordUri = `${BASE_URL}/my_wallet/record${URL_SUFFIX}`;
export const myWalletWithdrawUri = `${BASE_URL}/my_wallet/withdraw${URL_SUFFIX}`;
export const myWalletAccountUri = `${BASE_URL}/my_wallet/account${URL_SUFFIX}`;

export const myNoticeListsUri = `${BASE_URL}/my_notice/lists${URL_SUFFIX}`;

export const memberProfileExchangeApplyListsUri = `${BASE_URL}/member_profile_exchange_apply/lists${URL_SUFFIX}`;
export const memberProfileExchangeApplyAuditUri = `${BASE_URL}/member_profile_exchange_apply/audit${URL_SUFFIX}`;

export const marketingActivityInfoUri = `${BASE_URL}/marketing_activity/info${URL_SUFFIX}`;
export const marketingActivityJoinUri = `${BASE_URL}/marketing_activity/join${URL_SUFFIX}`;

export const vipCardPreviewUri = `${BASE_URL}/vip_card/preview${URL_SUFFIX}`;
export const vipCardActiveUri = `${BASE_URL}/vip_card/active${URL_SUFFIX}`;


